﻿<%@ Page Language="VB" MasterPageFile="~/NavegacaoMaster.master" AutoEventWireup="false" CodeFile="forum_inicialPesquisaAvancada.aspx.vb" Inherits="forum_forum_inicialPesquisaAvancada" title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table>
        <tr>
            <td style="width: 15px">
            </td>
            <td style="width: 343px">
                <p class="titulo-pagina">
                    Busca Avançada no Forum</p>
            </td>
            <td style="width: 231px" valign="middle">
                &nbsp;</td>
        </tr>
    </table>
    <table style="width:100%;">
        <tr>
            <td style="width: 15px">
                &nbsp;</td>
            <td style="width: 214px">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td style="width: 15px">
                &nbsp;</td>
            <td style="width: 214px">
                Com <b>todas </b>as palavras:</td>
            <td>
                <asp:TextBox ID="txtBuscaTodas" runat="server" Width="150px"></asp:TextBox>
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Button ID="btnPesquisar" runat="server" onclick="btnPesquisar_Click" 
                    SkinID="btnPadrao" Text="Buscar" Width="61px" />
            </td>
        </tr>
        <tr>
            <td style="width: 15px">
                &nbsp;</td>
            <td style="width: 214px">
                Com a <b>expressão</b>:</td>
            <td>
                <asp:TextBox ID="txtBuscaExpressao" runat="server" Width="150px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td style="width: 15px">
                &nbsp;</td>
            <td style="width: 214px">
                Com <b>qualquer</b> uma das palavras:</td>
            <td>
                <asp:TextBox ID="txtBuscaQualquer" runat="server" Width="150px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td style="width: 15px">
                &nbsp;</td>
            <td style="width: 214px">
                <b>Sem </b>as palavras:</td>
            <td>
                <asp:TextBox ID="txtBuscaSem" runat="server" Width="150px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td style="width: 15px">
                &nbsp;</td>
            <td style="width: 214px">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td style="width: 15px">
                &nbsp;</td>
            <td colspan="2">
                 <asp:GridView ID="GridView1" SkinID="grvBusca" runat="server" 
                    AutoGenerateColumns="False">
                    <Columns>
                        <asp:TemplateField HeaderText="Categoria">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                               <asp:Label ID="Label3" runat="server" Text='<%# Bind("NomeCategoria") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Subcategoria">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                 <asp:LinkButton ID="LinkButton2" runat="server" SkinID="lnkCategorias" PostBackUrl='<%# "~/forum/subcategoria.aspx?id=" & Eval("IdSubcategoria") %>' Text='<%# Eval("NomeSubCategoria") %>'></asp:LinkButton>
                            </ItemTemplate>
                            <ItemStyle Width="120px" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Tópico">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("Titulo") %>'></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:LinkButton ID="LinkButton2" runat="server" SkinID="lnkCategorias" PostBackUrl='<%# "~/forum/topico.aspx?id=" & Eval("IdTopico") %>'
                                    Text='<%# Eval("Titulo") %>' ></asp:LinkButton>
                            </ItemTemplate>
                            <ItemStyle Width="120px" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Mensagens">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox4" runat="server" Text='<%# Bind("TrechoMensagem") %>'></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                               <asp:LinkButton ID="LinkButton2" runat="server" SkinID="lnkTrechoMsg" PostBackUrl='<%# "~/forum/topico.aspx?id=" & Eval("IdTopico") %>'
                                    Text='<%# Eval("TrechoMensagem") %>'></asp:LinkButton>
                            </ItemTemplate>
                            <ItemStyle Width="250px" />
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
                <asp:Label ID="lblErro" runat="server" Text="Label" Visible="False"></asp:Label></td>
        </tr>
    </table>
</asp:Content>

